package org.gavin.sharding.service.impl;

import com.mybatisflex.annotation.UseDataSource;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import org.gavin.sharding.entity.TbAccount;
import org.gavin.sharding.mapper.TbAccountMapper;
import org.gavin.sharding.service.TbAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现。
 *
 * @author gavin
 * @since 2024-01-31T16:49:03.6472063
 */
@Service
public class TbAccountServiceImpl extends ServiceImpl<TbAccountMapper, TbAccount> implements TbAccountService {

    @Autowired
    private TbAccountMapper accountMapper;

    @Override
    public List<TbAccount> getAccount1() {
        List<TbAccount> tbAccounts = accountMapper.selectAll();
        return tbAccounts;
    }
}
